<div class=menu>
  <center>
  <div id=menuBody>
    <input type="button" class="awesome_button" value="Portada" onclick="document.location='/'"/>
    <%  if current_user.role_id==2 %>
      <input type="button" class="awesome_button" value="Mis Aprovaciones" onclick="document.location='/accepted'" />
    <%end%>
    <%= button_to_function "Proyectos", visual_effect(:toggle_slide, "subProjects", :duration => 0.5),:class=>'awesome_button' %>
    <div id="subProjects">
        <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Todos',:controller=>'projects' %></p>
        <%if current_user.role_id < 3 %>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Nuevo',:controller=>'projects',:action=>'new' %></p>
        <%end%>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Hoja de tiempo', :controller=>'week_time_sheets' %></p>
    </div><br/>
    <%if current_user.role_id < 3 %>
    <%= button_to_function "Usuarios", visual_effect(:toggle_slide, "subUsers", :duration => 0.5), :class=>'awesome_button' %>
    <div id="subUsers">
        <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Todos',:controller=>'users' %></p>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Nuevo',:controller=>'users',:action=>'new' %></p>
    </div>
    <%end%>
    
    <%= button_to_function "Tareas", visual_effect(:toggle_slide, "subTasks", :duration => 0.5), :class=>'awesome_button' %>
    <div id="subTasks">
      <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Todos',:controller=>'tasks' %></p>
      <%if current_user.role_id < 3 %>
      <p>&nbsp;&nbsp;&nbsp;&nbsp;=><%= link_to 'Nuevo',:controller=>'tasks',:action=>'new' %></p>
      <%end%>
    </div>
    
  </div><br/>
</center>
</div>